#ifndef CUBE_UI_H_
#define CUBE_UI_H_

class UI
{
public:
	UI();
	virtual ~UI();

	static LPD3DXSPRITE		GetSprite();

	RECT					GetRect(){ return _rect; }
	D3DXVECTOR2				GetSize();
	D3DXVECTOR2				GetStartPos();

	void					SetRect( int left, int top, int right, int bottom );
	void					SetSize( int width, int height );
	void					SetStartPos( int x, int y );

	void					Draw();

protected :
	virtual void			ActualDraw() = 0;

private :
	static LPD3DXSPRITE		_pSprite;
	static DWORD			_refCount;

	RECT					_rect;
	D3DXVECTOR3				_pos;
};

#endif